package com.czq.common.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.ElementType.TYPE_USE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author Administrator
 * @date   2022/2/27 0027 23:04
 */
@Documented
@Constraint(validatedBy = {CustomValidConstraintValidator.class})
@Target({FIELD})
@Retention(RUNTIME)
public @interface CustomValid
{
	
	String message() default "{com.czq.common.valid.CustomValid.message}";
	
	Class<?>[] groups() default {};
	
	Class<? extends Payload>[] payload() default {};
	
	int[] value();
}
